RSYNC software introduction: rsync is a data image backup tool in unix-like systems. It can be seen from the software name-remote sync. Its features are as follows: images can be used to save the entire directory tree and file system. It is easy to maintain the permissions, time, and soft links of the original file.Installation without special permissions. Optimized process, high file transmission efficienc
1、scp限速scp -l 800 a.txt [emailprotected]:/home/admin/downloads此时的传输速率就是800/8=100KB左右Man-a SCP View the meaning of the parameter. Note that the unit is bit2, rsync is used to synchronize updates, can also be used to upload files, but it is not recommended to useMan-a rsync view parameter Help information使用rsync实现限速100KB/srsync -auvzP --bwlimit=100 本地文件 远程文件参数说明:v:
methods: Rsync-avz/root/test-e ' ssh-p1234 ' [email protected]:/root/ V. Installation of rsync To install rsync, we can be divided into two ways: source mode installation and RPM mode installation. Note: The Rsync software is the same package both on the server side and on the client. Below we will explain one by one
synchronization.
Ii. System Environment
System Platform:CentOS release 6.3 (Final)
Rsync version:Rsync-3.0.9-2.el6.rfx.x86_64.rpm
Rsync server:TS-DEV (17w..1.135)
Rsync client:TS-CLIENT (172.16.1.136)
Iii. Installing rsync on the server
3.1. Check whether rsync has been ins
=" Qq20150830234701.png "alt=" Wkiom1xjjobxlkwzaaeze2l7vto016.jpg "/> path =/usr/src shared path comment = Rsync Share test description Information Read Only = yes is a read-only dont Compress = *.gz *.bz2 *.tgz *.zip do not need to package auth users = Ruser nbs P //who is allowed to access Secrets file =/etc/rsyncd_users.db nbsp; //Specify the path to the account file Start the rsync-
1, testing the distributor system to meet the requirements, the kernel is more than 2.3Uname-r #查看系统内核 ll/proc/sys/fs/inotify/ Meet the requirements.2. Download the latest version and compile the installation on the Distributor serverCD #回到用户目录wget http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz #下载最新版tar ZXVF inotify-tools-3.14.tar.gz #解压到当前目录cd inotify-tools-3.14 #进入目录./configure--prefix=/alidata/server/inotify /#编译
.
There should be no issues caused by login with your username, try rsync-A max@144.16.251.213: Test test
Q: What is the following message?@ Error: AUTH failed on module XXXXXRsync: Connection unexpectedly closed (90 bytes read so far)Rsync error: Error in rsync protocol data stream (Code 12) at I/O. C (150)
A: This is because the password is set incorrectly and
module xxxxxRsync: connection unexpectedly closed (90 bytes read so far)Rsync error: error in rsync protocol data stream (code 12) at I/O. c (150)
A: This is because the password is set incorrectly and cannot be successfully logged in. Please check the password settings in rsyncd. secrets again. Are the two sides consistent?
Q: What is the following message?
Password file must not be other-accessibleContin
characteristics are as follows:
Can be mirrored to save the entire directory tree and file system.
It is easy to maintain the original file permissions, time, soft and hard links and so on.
can be installed without special permissions.
Optimized flow, high efficiency of file transfer.
You can use RCP, ssh, and so on to transfer files, of course, through a direct socket connection.
Support for anonymous transmission, to facilitate the use of Web site mirror image.
Software downloads
RYSNC's home
will skip the-delete operation when an IO error occurs, to prevent serious problems caused by temporary lack of resources or other IO errors. Ignore nonreadable specifies that the rysnc server completely ignores files that users do not have access. This makes sense when some files in the directory to be backed up should not be backed up by the backup owner. Lock file specifies the lock file that supports the max connections parameter. the default value is/var/run/rsyncd. lock. Transfer logging
rsync for data synchronization.
Ii. System Environment
System Platform: CentOS release 6.3 (Final)
Rsync version: rsync-3.0.9-2.el6.rfx.x86_64.rpm
Rsync server: TS-DEV (172.16.1.135)TS-CLIENT (172.16.1.136)Iii. Installing rsync on the server3.1. Check whether
Platform:Centos release 6.3 (final)
Rsync version:Rsync-3.0.9-2.el6.rfx.x86_64.rpm
Rsync server:TS-DEV (17w..1.135)
Rsync client:TS-CLIENT (172.16.1.136)
Iii. Installing rsync on the server
3.1. Check whether rsync has been installed
# Rpm-Qa | grep
before using rsync for data synchronization.
Ii. System Environment
System Platform:CentOS release 6.3 (Final)
Rsync version:Rsync-3.0.9-2.el6.rfx.x86_64.rpm
Rsync server:TS-DEV (17w..1.135)
Rsync client:TS-CLIENT (172.16.1.136)
Iii. Installing rsync on the server
3.1. Chec
Schedule (crontab)
[Root @ aj1 home] # vi/etc/xinetd. d/rsync
# Default: off
# Description: The rsync server is a good addition to an ftp server, as it
# Allows crc checksumming etc.
Service rsync
{
Disable = yes
Socket_type = stream
Wait = no
User = root
Server =/usr/bin/rsync
Server_args = -- daemon
Log_on_failure
1. Using Ssh+rsyncYou only need to open the SSH service on the server side and start the rsync service in xinetd to useA. Incremental synchronizationrsync-av/src-dir/. [email protected]:/dest-dir/.B. Mirroring synchronizationRsync-av--delete/src-dir/. [email protected]:/dest-dir/.Features: Simple configuration, no need to configure rsyncd.conf profile, but requires user authentication during synchronizationNote: You can create an auto-sync encryption
up by the backup owner. Lock file specifies the lock file that supports the max connections parameter. The default value is/var/run/rsyncd. lock. Transfer logging enables rsync servers to use ftp files to record download and upload operations in their own separate logs. With this option, you can use transfer logging to customize log File fields. The format is a string containing the format specifiers. The
Directory1 application Scenarios for remote file synchronization 2. rsync+crontab3. Rsync+inotify1. Application Scenarios for remote file synchronizationIn a load-balanced cluster scenario, there is often a load Balance Server on the front end of multiple Web servers that provides1 The client accesses a unified domain name to this load Balance, for example: Www.test.com,Load Balance Server allocates the req
installed, run the rpm-e command to uninstall it.
3.2. Download the RPM package
# Wget http://pkgs.repoforge.org/rsync/rsync-3.0.9-2.el6.rfx.x86_64.rpm
3.3. Install rsync
# Rpm-ivh rsync-3.0.9-2.el6.rfx.x86_64.rpm
4. Configure the rsync
, rsync skips the -- delete operation when an IO error occurs, to prevent serious problems caused by temporary lack of resources or other IO errors. Ignore nonreadable specifies that the rysnc server completely ignores files that users do not have access. This makes sense when some files in the directory to be backed up should not be backed up by the backup owner. Transfer logging enables rsync servers to u
-remote sync. Its features are as follows:
Images can be used to save the entire directory tree and file system.It is easy to maintain the permissions, time, and soft links of the original file.Installation without special permissions.Optimized process, high file transmission efficiency.You can use rcp, ssh, and other methods to transmit files. Of course, you can also use a direct socket connection.Supports anonymous transmission for website images.Software DownloadThe home address of rysnc is:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.